def count_characters(string):
    for char in string:
        if char.isalpha():
            letters=letters+1
        if char.isdigit():
            numbers+=1
        if char.isspace():
            sapces+=1
        else :
            others+=1
    return letters,numbers,sapces,others
